# -*- coding:utf-8 -*-
# @Time : 2020/7/14 8:36
# @Author : Administrator
# @File : forms.py
# @Software: PyCharm
# @Motto: good good study,day day up

from django import forms

PRODUCT_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)]


class CartAddProductForm(forms.Form):
    quantity = forms.TypedChoiceField(choices=PRODUCT_QUANTITY_CHOICES, coerce=int)
    update = forms.BooleanField(required=False, initial=False, widget=forms.HiddenInput)